<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gwitter - 去中心化的Twitter替代方案</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #2d3748;
            line-height: 1.6;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6b46c1 0%, #4c51bf 100%);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .feature-icon {
            transition: all 0.3s ease;
        }
        .feature-card:hover .feature-icon {
            transform: scale(1.1);
            color: #6b46c1;
        }
        .highlight-text {
            background: linear-gradient(90deg, #9f7aea 0%, #667eea 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .section-divider {
            height: 1px;
            background: linear-gradient(90deg, rgba(203, 213, 225, 0) 0%, rgba(203, 213, 225, 0.75) 50%, rgba(203, 213, 225, 0) 100%);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 leading-tight">重新定义<span class="highlight-text">社交媒体</span></h1>
                    <h2 class="text-xl md:text-2xl font-medium mb-6 opacity-90">基于Git的<span class="highlight-text">去中心化</span>社交网络</h2>
                    <p class="text-lg mb-8 opacity-90">Gwitter利用Git的强大功能，为您提供一个真正属于用户的社交平台，让数据主权回归个人。</p>
                    <div class="flex flex-col sm:flex-row gap-4">
                        <a href="https://github.com/SimonAKing/Gwitter" class="bg-white text-purple-800 hover:bg-gray-100 px-6 py-3 rounded-lg font-medium transition duration-300 flex items-center justify-center">
                            <i class="fab fa-github mr-2"></i> GitHub 仓库
                        </a>
                        <a href="#getting-started" class="bg-transparent border-2 border-white hover:bg-white hover:text-purple-800 px-6 py-3 rounded-lg font-medium transition duration-300 flex items-center justify-center">
                            <i class="fas fa-rocket mr-2"></i> 快速上手
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <div class="bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg p-6 rounded-xl border border-white border-opacity-20 w-full max-w-md">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 rounded-full bg-purple-300 mr-3"></div>
                            <div>
                                <div class="font-medium">@开发者</div>
                                <div class="text-sm opacity-75">刚刚加入Gwitter</div>
                            </div>
                        </div>
                        <div class="mb-4">
                            <p>这是我的第一条#Gweet！</p>
                            <p class="mt-2">通过Git仓库存储社交内容，真正实现去中心化。不再受平台算法和审查的限制！🚀</p>
                        </div>
                        <div class="flex text-sm text-white text-opacity-70">
                            <div class="mr-4"><i class="far fa-comment mr-1"></i> 回复</div>
                            <div class="mr-4"><i class="fas fa-code-branch mr-1"></i> Fork</div>
                            <div><i class="far fa-star mr-1"></i> Star</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section class="py-16 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4">为什么选择<span class="highlight-text">Gwitter</span>?</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">Gwitter重新定义了社交媒体的底层架构，为您提供前所未有的自由和控制权</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border-l-4 border-purple-500">
                    <div class="feature-icon text-purple-500 text-3xl mb-4">
                        <i class="fas fa-code-branch"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">基于Git的版本控制</h3>
                    <p class="text-gray-600">所有内容存储在Git仓库中，具备完整的版本历史记录和不可篡改性</p>
                </div>
                
                <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border-l-4 border-blue-500">
                    <div class="feature-icon text-blue-500 text-3xl mb-4">
                        <i class="fas fa-network-wired"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">真正的去中心化</h3>
                    <p class="text-gray-600">无中心服务器架构，避免单点故障和内容审查</p>
                </div>
                
                <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border-l-4 border-green-500">
                    <div class="feature-icon text-green-500 text-3xl mb-4">
                        <i class="fas fa-lock"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">数据主权</h3>
                    <p class="text-gray-600">您的数据完全由您掌控，存储在您自己的Git仓库中</p>
                </div>
                
                <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border-l-4 border-yellow-500">
                    <div class="feature-icon text-yellow-500 text-3xl mb-4">
                        <i class="fas fa-cogs"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">高度可定制</h3>
                    <p class="text-gray-600">开源代码，可根据需求自由修改和扩展功能</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Divider -->
    <div class="section-divider my-8"></div>

    <!-- Comparison Section -->
    <section class="py-16 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">传统社交媒体 vs <span class="highlight-text">Gwitter</span></h2>
                <p class="text-gray-600 max-w-2xl mx-auto">打破中心化社交媒体的局限，迎接真正的自由社交</p>
            </div>
            
            <div class="overflow-x-auto">
                <table class="w-full table-auto bg-white rounded-lg overflow-hidden shadow-md">
                    <thead class="bg-gray-100">
                        <tr>
                            <th class="px-6 py-4 text-left font-medium text-gray-700">特性</th>
                            <th class="px-6 py-4 text-center font-medium text-gray-700">传统社交媒体</th>
                            <th class="px-6 py-4 text-center font-medium text-purple-700">Gwitter</th>
                        </tr>
                    </thead>
                    <tbody class="divide-y divide-gray-200">
                        <tr class="hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">数据存储</td>
                            <td class="px-6 py-4 text-center">平台服务器</td>
                            <td class="px-6 py-4 text-center text-purple-600 font-medium">用户自己的Git仓库</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">内容控制</td>
                            <td class="px-6 py-4 text-center">平台决定内容可见性</td>
                            <td class="px-6 py-4 text-center text-purple-600 font-medium">用户完全控制</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">审查风险</td>
                            <td class="px-6 py-4 text-center">存在单点审查</td>
                            <td class="px-6 py-4 text-center text-purple-600 font-medium">抗审查设计</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">迁移成本</td>
                            <td class="px-6 py-4 text-center">数据难以导出</td>
                            <td class="px-6 py-4 text-center text-purple-600 font-medium">Git仓库轻松迁移</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">定制能力</td>
                            <td class="px-6 py-4 text-center">受限于平台功能</td>
                            <td class="px-6 py-4 text-center text-purple-600 font-medium">开源代码自由修改</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>

    <!-- Architecture Diagram -->
    <section class="py-16 px-4 bg-gray-50">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">Gwitter <span class="highlight-text">架构原理</span></h2>
                <p class="text-gray-600 max-w-2xl mx-auto">基于Git的分布式社交网络工作原理</p>
            </div>
            
            <div class="bg-white p-6 rounded-xl shadow-md">
                <div class="mermaid">
                    graph LR
                    A[用户A] -- 发布Gweet --> B[Git仓库A]
                    B -- Git同步 --> C[Git仓库B]
                    C -- 拉取更新 --> D[用户B]
                    D -- 回复/互动 --> C
                    C -- Git同步 --> B
                    B -- 接收互动 --> A
                    
                    style A fill:#f0f9ff,stroke:#3b82f6
                    style D fill:#f0f9ff,stroke:#3b82f6
                    style B fill:#f5f3ff,stroke:#8b5cf6
                    style C fill:#f5f3ff,stroke:#8b5cf6
                </div>
            </div>
        </div>
    </section>

    <!-- Use Cases -->
    <section class="py-16 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">适用<span class="highlight-text">场景</span></h2>
                <p class="text-gray-600 max-w-2xl mx-auto">Gwitter为不同需求提供创新的社交解决方案</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="card-hover bg-white p-6 rounded-xl shadow-md transition duration-300">
                    <div class="text-purple-500 text-3xl mb-4">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">抗审查社区</h3>
                    <p class="text-gray-600 mb-4">在对言论自由有严格限制的环境中，Gwitter可以作为一种逃避审查的沟通渠道</p>
                    <div class="text-sm text-purple-500 font-medium flex items-center">
                        了解更多 <i class="fas fa-arrow-right ml-2"></i>
                    </div>
                </div>
                
                <div class="card-hover bg-white p-6 rounded-xl shadow-md transition duration-300">
                    <div class="text-blue-500 text-3xl mb-4">
                        <i class="fas fa-users"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">私密社交网络</h3>
                    <p class="text-gray-600 mb-4">开发者团队或特定群体可以搭建自己的Gwitter实例，用于内部交流和知识分享</p>
                    <div class="text-sm text-blue-500 font-medium flex items-center">
                        了解更多 <i class="fas fa-arrow-right ml-2"></i>
                    </div>
                </div>
                
                <div class="card-hover bg-white p-6 rounded-xl shadow-md transition duration-300">
                    <div class="text-green-500 text-3xl mb-4">
                        <i class="fas fa-book"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">个人内容档案</h3>
                    <p class="text-gray-600 mb-4">用户可以将Gweet作为个人博客或微型日志进行维护，便于长期保存和迁移</p>
                    <div class="text-sm text-green-500 font-medium flex items-center">
                        了解更多 <i class="fas fa-arrow-right ml-2"></i>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Getting Started -->
    <section id="getting-started" class="py-16 px-4 bg-gray-50">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">快速<span class="highlight-text">上手</span></h2>
                <p class="text-gray-600 max-w-2xl mx-auto">开始您的去中心化社交体验</p>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-6 md:p-8">
                    <div class="flex flex-col md:flex-row">
                        <div class="md:w-1/2 pr-0 md:pr-8 mb-6 md:mb-0">
                            <h3 class="text-xl font-bold mb-4">部署要求</h3>
                            <ul class="space-y-3">
                                <li class="flex items-start">
                                    <div class="flex-shrink-0 mt-1">
                                        <div class="flex items-center justify-center h-5 w-5 rounded-full bg-purple-100 text-purple-600">
                                            <i class="fas fa-check text-xs"></i>
                                        </div>
                                    </div>
                                    <p class="ml-3 text-gray-600">基本的Git知识和操作能力</p>
                                </li>
                                <li class="flex items-start">
                                    <div class="flex-shrink-0 mt-1">
                                        <div class="flex items-center justify-center h-5 w-5 rounded-full bg-purple-100 text-purple-600">
                                            <i class="fas fa-check text-xs"></i>
                                        </div>
                                    </div>
                                    <p class="ml-3 text-gray-600">Node.js运行环境</p>
                                </li>
                                <li class="flex items-start">
                                    <div class="flex-shrink-0 mt-1">
                                        <div class="flex items-center justify-center h-5 w-5 rounded-full bg-purple-100 text-purple-600">
                                            <i class="fas fa-check text-xs"></i>
                                        </div>
                                    </div>
                                    <p class="ml-3 text-gray-600">Git仓库（GitHub/GitLab或自建）</p>
                                </li>
                            </ul>
                        </div>
                        <div class="md:w-1/2">
                            <h3 class="text-xl font-bold mb-4">部署步骤</h3>
                            <div class="bg-gray-800 rounded-lg p-4 text-gray-100 font-mono text-sm overflow-x-auto">
                                <div class="mb-2">
                                    <span class="text-green-400"># 克隆仓库</span><br>
                                    <span class="text-blue-400">git</span> clone https://github.com/SimonAKing/Gwitter.git<br>
                                    <span class="text-blue-400">cd</span> Gwitter
                                </div>
                                <div class="mb-2">
                                    <span class="text-green-400"># 安装依赖</span><br>
                                    <span class="text-blue-400">npm</span> install
                                </div>
                                <div class="mb-2">
                                    <span class="text-green-400"># 配置Git仓库</span><br>
                                    <span class="text-yellow-400">修改</span> config.json <span class="text-yellow-400">中的仓库设置</span>
                                </div>
                                <div>
                                    <span class="text-green-400"># 启动应用</span><br>
                                    <span class="text-blue-400">npm</span> start
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="bg-gray-50 px-6 py-4 border-t border-gray-200">
                    <div class="flex items-center">
                        <div class="flex-shrink-0">
                            <i class="fas fa-info-circle text-purple-500"></i>
                        </div>
                        <div class="ml-3">
                            <p class="text-sm text-gray-600">详细部署指南请参考项目的README文档，遇到问题可以在GitHub提交issue</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- CTA Section -->
    <section class="py-16 px-4 hero-gradient text-white">
        <div class="container mx-auto max-w-4xl text-center">
            <h2 class="text-3xl font-bold mb-6">准备好加入<span class="highlight-text">去中心化社交</span>革命了吗？</h2>
            <p class="text-xl mb-8 opacity-90 max-w-2xl mx-auto">Gwitter是完全开源的自由项目，您的参与和贡献将帮助构建更好的去中心化未来</p>
            <div class="flex flex-col sm:flex-row justify-center gap-4">
                <a href="https://github.com/SimonAKing/Gwitter" class="bg-white text-purple-800 hover:bg-gray-100 px-8 py-4 rounded-lg font-medium transition duration-300 flex items-center justify-center">
                    <i class="fab fa-github mr-3"></i> 立即访问GitHub
                </a>
                <a href="#getting-started" class="bg-transparent border-2 border-white hover:bg-white hover:text-purple-800 px-8 py-4 rounded-lg font-medium transition duration-300 flex items-center justify-center">
                    <i class="fas fa-book mr-3"></i> 查看文档
                </a>
            </div>
        </div>
    </section>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>